<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人资料</title>
<link rel="stylesheet" type="text/css" href="Assets/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="Assets/css/common.css"/>
<link rel="stylesheet" type="text/css" href="Assets/css/thems.css"/>

<style type="text/css">
	#submitbutton{
		cursor:pointer;
	}
</style>

<script type="text/javascript" src="Assets/js/jquery-1.8.3.min.js"></script>

<script type="text/javascript">
	$(function(){
		$("#left_menu li ul").css("display","none");
		$("#left_menu li:first ul").css("display","block");
		$("#left_menu li .yiji").click(function(){
			$(this).parents("li").find(".erji").css("display","block");
			$(this).parent("li").siblings("li").find(".erji").css("display","none");
		});
	})
	$(document).ready(function(){
		if("${sessionScope.saveDataFlag}"=="true"){			
			alert("保存成功！！");
		}
	});
</script>

</head>

<body>
<!--头部-->
<div class="head_bg">
	<div class="head clearfix">
    	<div class="logo"><a href="index.jsp"><img src="Assets/images/logo.png" alt=""/></a></div>
        <div class="menu">
        	 <c:if test="${sessionScope.loginsuccess!=true}">
		        	<%
		        		response.sendRedirect("login.jsp");
		        	%>
		     </c:if>
		     <c:if test="${sessionScope.loginsuccess==true}">
		     		<div class="head_top">
		            	用户&nbsp;${sessionScope.username}&nbsp;已登录
		            	<a href="clearlogin" class="submit">退出</a>
		            </div>
		     </c:if>
            <ul class="clearfix">
            	<li class="now"><a href="index.jsp">首页</a></li>
                <li><a href="personal.jsp">我的资料</a></li>
				<li><a href="OrderQuery">我的物流</a></li>
				<li><a href="book.jsp">网上下单</a></li>
                <li><a href="news_d.jsp">帮助与支持</a></li>
                <li><a href="about.jsp">萤火物流</a></li>
            </ul>
        </div>
    </div>
</div>
<!--头部-->
<!--中间部分-->
<div class="main">
	<!--订单中心-->
    <div class="person clearfix">
    	<div class="order_l person_l">
        	<ul id="left_menu" class="left_menu">
            	<li>
                	<a class="yiji"><span>个人中心</span><em>&nbsp;</em></a>
                    <ul class="erji">
                    	<li>
                        	<i>&nbsp;</i>
                            <strong><a href="personal.jsp">个人资料</a></strong>
                        </li>
                    </ul>
                </li>
				
                <li>
                	<a class="yiji"><span>订单中心</span><em>&nbsp;</em></a>
                    <ul class="erji">
                    	<li>
                        	<i>&nbsp;</i>
                            <strong><a href="OrderQuery">我的订单</a></strong>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
        <div class="person_r">
        	<div class="person_h">
            	<span>个人资料设置</span>
            </div>
            <div class="person_rmain">
            	<strong>帐户信息</strong>
                <ul>
                	<li>
                    	<span>登陆帐户：</span>
                        <em>${sessionScope.username}</em>
                    </li>
                    <li>
                    	<span>所属公司：</span>
                        <a>萤火物流</a>
                    </li>
                </ul>
                <div class="space_hx">&nbsp;</div>
                
                <div class="space_hx">&nbsp;</div>
                <strong>基本信息</strong>
                <%session.setAttribute("saveDataFlag", "false"); %>
                <form action="SaveUserData" method="post">
                <ul>
                	<li>
                    	<span>姓名：</span>
                        <input name="name" id="name" type="text" value="${sessionScope.userData.name}">
                    </li>
                    
                    <li>
                    	<span>学校：</span>
                        <input name="school" id="school" type="text" value="${sessionScope.userData.school}">
                    </li>
                    
                    <li>
                    	<span>所在地：</span>
                        <input name="address" id="address" type="text" value="${sessionScope.userData.address}">
                    </li>
                    <li>
                    	<span>个人说明：</span>
                        <input name="beizhu" id="beizhu" type="text" value="${sessionScope.userData.beizhu}">
                    </li>
                    <li>
                    	<input type="submit" class="submit" value="保存" id="submitbutton"/>
                    </li>
                </ul>
                </form>
            </div>
        </div>
    </div>
    <!--订单中心-->
    <div class="space_hx">&nbsp;</div>
</div>
<!--中间部分-->
<div class="space_hx">&nbsp;</div>
<!--底部-->
<div class="foot_bg">
	<div class="foot">
    	<div class="foot_t">

        </div>
        <div class="copy">
        <a href="guanliyuan.jsp">管理员</a>
        	Copyright&copy;&nbsp;2012-2015&nbsp; 找物流有限责任公司.&nbsp;&nbsp;All&nbsp;&nbsp;rights&nbsp;&nbsp;reserved. &nbsp;&nbsp;粤ICP备10005645
        </div>
    </div>	
</div>
<!--底部-->
</body>
</html>
